Skip to content

Fix HDR10 swapchain encoding by adding missing bt2020 color space conversion#3

Open
NotVoosh wants to merge 3 commits intosmolbbsoop:mainfrom
NotVoosh:main
Open

Fix HDR10 swapchain encoding by adding missing bt2020 color space conversion#3
NotVoosh wants to merge 3 commits intosmolbbsoop:mainfrom
NotVoosh:main

Conversation

@NotVoosh
Copy link
Copy Markdown

@NotVoosh NotVoosh commented Feb 28, 2026

Hi,

HDR10 swapchain is not only encoded with PQ, but also in a different color space (Bt2020).

This PR adds proper conversion to Bt709 color space to match SDR and meet non-HDR-compatible shaders expectations.

Also: doing Tonemap and its Inverse in Bt2020 would be one way to partially preserve Wide Color Gamut colors through SDR effects.
I did not include it this PR as kind of a dirty simple trick, and I'm pretty sure there are better ways to achieve this, like Gamut Compression/Decompression.

Will look into adding this in a latter PR eventually.

Cheers

@NotVoosh
Copy link
Copy Markdown
Author

NotVoosh commented Mar 1, 2026

Updated to fix compilation after some testing. Thanks @CreepySasquatch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant